feat: add native Cline integration#2508
Conversation
There was a problem hiding this comment.
Pull request overview
Adds first-class support for the Cline IDE agent integration, while generalizing command name formatting so integrations can control on-disk command naming (notably for hyphenated slash-command agents). Also updates hook invocation rendering and adjusts tests/docs accordingly.
Changes:
- Introduce
ClineIntegrationtargeting.clinerules/with hyphenated command filenames and invocations. - Update
CommandRegistrarto respect an integration-providedformat_namecallback for non-skill command file output names. - Render hyphenated invocations for Cline in hook execution and update tests/docs/catalog to include the new integration.
Show a summary per file
| File | Description |
|---|---|
| tests/test_extensions.py | Adds coverage for Cline-specific hook invocation rendering (/speckit-*). |
| tests/integrations/test_integration_subcommand.py | Normalizes CLI output assertions by stripping ANSI codes. |
| tests/integrations/test_integration_forge.py | Updates Forge expectations for hyphenated extension command filenames. |
| tests/integrations/test_integration_cline.py | Adds new test suite for Cline integration behavior and naming. |
| tests/integrations/test_cli.py | Strips ANSI codes before asserting on Rich CLI output. |
| src/specify_cli/integrations/cline/init.py | Implements the new Cline integration + command name formatter. |
| src/specify_cli/integrations/init.py | Registers Cline as a builtin integration. |
| src/specify_cli/extensions.py | Updates hook invocation rendering to emit /speckit-* for Cline projects. |
| src/specify_cli/agents.py | Applies format_name when computing non-skill on-disk command filenames. |
| integrations/catalog.json | Adds Cline metadata to the integrations catalog. |
| docs/reference/integrations.md | Documents Cline as a supported integration. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 11/11 changed files
- Comments generated: 3
2d0db2c to
03ba965
Compare
|
Please address Copilot feedback |
03ba965 to
d098c2d
Compare
mnriem
left a comment
There was a problem hiding this comment.
Please address Copilot feedback
1b9a0f1 to
83b6c3e
Compare
|
Please address Copilot feedback. If not applicable please explain why. Also please resolve conflicts by pulling in latest from upstream/main |
49aabc9 to
4552440
Compare
4552440 to
e0bbbbf
Compare
3a8f905 to
fe38e40
Compare
|
Recent changes:
|
|
Please address Copilot feedback and resolve conflicts |
mnriem
left a comment
There was a problem hiding this comment.
Please see comments above
3af267b to
61d00aa
Compare
mnriem
left a comment
There was a problem hiding this comment.
Please address Copilot feedback
ae7bfa1 to
3a04ea8
Compare
Description
This PR introduces a new integration for Cline (IDE-based agent).
Testing
uv run specify --helpuv sync && uv run pytestAI Disclosure
Code generated with Gemini CLI with little manual tunings.